<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.link.*" %>
<%@ page import="com.business.link.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<% String  title="网址收藏"; %>
<%@include file="header.jsp"%>
<p>
  <%
  	LinkListBus llb=new LinkListBus();
		List linkList=llb.getAllLinkByUserName(username);
		if(linkList==null||linkList.size()==0) {
		out.println("<br/><center><font color=red>您未收藏任何网址</font></center><br/>");
		}
		else {
		
		%>
</p>
<p>您收藏的网址：</p>
<table cellspacing="15px">
<tr><th width=>名称</th><th>描述</th><th >功能</th></tr>
<p>&nbsp; </p>
<p>
  <%for(int i=0;i<linkList.size();i++) {
		Link link=(Link)linkList.get(i);
		%>
<tr><td ><a href="<%=link.getLinkUrl()%>" target="_blank"><%=link.getLinkName()%></a></td><td><%=link.getLinkDemo()%></td><td>
<a href="updatelink?action=edit&no=<%=link.getLinkNo()%>">修改</a>&nbsp;<a href="updatelink?action=del&no=<%=link.getLinkNo()%>">删除</a></td></tr>
	    <p>
	      <%	
	}	}
%>
</p>
</p>
	    <p align="right">    </p>
		<%@include file="footer.jsp"%>
</body>

</html>
